<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{finBankAccountBean.page}"/>
		<f:event type="preRenderView" listener="#{finBankAccountBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Fin Bank Account entities"/>

	<ui:define name="header">
		Fin Bank Account
	</ui:define>

	<ui:define name="subheader">
		Search Fin Bank Account entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="finBankAccountBeanExampleBankAccTypeNo" value="Bank Acc Type No:"/>
						<h:panelGroup>
							<h:inputText id="finBankAccountBeanExampleBankAccTypeNo" value="#{finBankAccountBean.example.bankAccTypeNo}"/>
							<h:message for="finBankAccountBeanExampleBankAccTypeNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="finBankAccountBeanExampleBankAccNo" value="Bank Acc No:"/>
						<h:panelGroup>
							<h:inputText id="finBankAccountBeanExampleBankAccNo" maxLength="50" value="#{finBankAccountBean.example.bankAccNo}"/>
							<h:message for="finBankAccountBeanExampleBankAccNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="finBankAccountBeanExampleBankAccName" value="Bank Acc Name:"/>
						<h:panelGroup>
							<h:inputText id="finBankAccountBeanExampleBankAccName" maxLength="50" value="#{finBankAccountBean.example.bankAccName}"/>
							<h:message for="finBankAccountBeanExampleBankAccName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="finBankAccountBeanExampleBankName" value="Bank Name:"/>
						<h:panelGroup>
							<h:inputText id="finBankAccountBeanExampleBankName" maxLength="50" value="#{finBankAccountBean.example.bankName}"/>
							<h:message for="finBankAccountBeanExampleBankName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="finBankAccountBeanExampleBankBranch" value="Bank Branch:"/>
						<h:panelGroup>
							<h:inputText id="finBankAccountBeanExampleBankBranch" maxLength="50" value="#{finBankAccountBean.example.bankBranch}"/>
							<h:message for="finBankAccountBeanExampleBankBranch" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{finBankAccountBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{finBankAccountBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="finBankAccountBeanPageItems" styleClass="data-table" value="#{finBankAccountBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bank Acc Type No"/>
					</f:facet>
					<h:link outcome="/form/finBankAccount/view">
						<f:param name="id" value="#{_item.bankNo}"/>
						<h:outputText id="itemBankAccTypeNo" value="#{_item.bankAccTypeNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bank Acc No"/>
					</f:facet>
					<h:link outcome="/form/finBankAccount/view">
						<f:param name="id" value="#{_item.bankNo}"/>
						<h:outputText id="itemBankAccNo" value="#{_item.bankAccNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bank Acc Name"/>
					</f:facet>
					<h:link outcome="/form/finBankAccount/view">
						<f:param name="id" value="#{_item.bankNo}"/>
						<h:outputText id="itemBankAccName" value="#{_item.bankAccName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bank Name"/>
					</f:facet>
					<h:link outcome="/form/finBankAccount/view">
						<f:param name="id" value="#{_item.bankNo}"/>
						<h:outputText id="itemBankName" value="#{_item.bankName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bank Branch"/>
					</f:facet>
					<h:link outcome="/form/finBankAccount/view">
						<f:param name="id" value="#{_item.bankNo}"/>
						<h:outputText id="itemBankBranch" value="#{_item.bankBranch}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{finBankAccountBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
